/**
 * Created with JetBrains WebStorm.
 * User: Fred_974
 * Date: 08/03/13
 * Time: 22:42
 * To change this template use File | Settings | File Templates.
 */

var Personage = function Personage(){

}

Personage.prototype = {
    initialize : function() {
        this.id;
        this.group,
        this.name,
        this.coordinateX,
        this.coordinateY,
        this.coordinateZ,
        this.difficulty,
        this.level,
        this.money
    },


    init : function(parameters){
        this.id = parameters.id;
        this.name = parameters.name;

        if(parameters.group === undefined){

            this.group = null;
        } else{

            this.group = parameters.group;
        }

        this.coordinateX = parameters.coordinateX;
        this.coordinateY = parameters.coordinateY;
        this.coordinateZ = parameters.coordinateZ;
        this.difficulty = parameters.difficulty;
        this.level = parameters.level;
        this.money = parameters.money;
    },

    getId : function(){
        return this.id;
    },

    getName : function(){
        return this.name;
    },

    getCoordinateX : function(){
        return this.coordinateX;
    },

    getCoordinateY : function(){
        return this.coordinateY;
    },

    getCoordinateZ : function(){
        return this.coordinateZ;
    },

    getLevel : function(){
        return this.level;
    },

    getMoney : function(){
        return this.money;
    },

    getGroup : function(){
        return this.group;
    }

}
//coco
module.exports = Personage;
